import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// import voElement from '../packages'
import voElement from '../packages/index'

const app = createApp(App)
app.use(voElement, {
  transDictAPI: async (dictArr: string) => {
    const res: { label: string, value: string }[][] = []
    for (let dict of dictArr) {
      switch (dict) {
        case 'gender': {
          res.push([
            { label: '男', value: '1' },
            { label: '女', value: '2' },
          ])
          break
        }
      }
    }
    return res
  },
})
console.log(app._context.components)
app.mount('#app')
